import BigNumber from 'bignumber.js';

export function formatToYuan(value: number | string) {
  return value ? new BigNumber(value).dividedBy(100).toNumber() : '0.00';
}
export function formatToFen(value: number | string) {
  return value ? new BigNumber(value).multipliedBy(100).toNumber() : '0.00';
}
